const user = require('./user');
const shop = require('./shop');
const cart = require('./cart');
const order = require('./order');
const upload = require('./upload');
const pay = require('./pay');

module.exports = app => {
    app.use(user.routes()).use(user.allowedMethods());
    app.use(shop.routes()).use(shop.allowedMethods());
    app.use(cart.routes()).use(cart.allowedMethods());
    app.use(order.routes()).use(order.allowedMethods()); 
    app.use(upload.routes()).use(upload.allowedMethods());
    app.use(pay.routes()).use(pay.allowedMethods());
};